package com.gupao.delegate;

/**
 * @Description: //TODO:委托者，全权代理日志处理的功能LoggerHandleDelegator
 * @ClassName: LoggerHandleDelegator
 * @Author: msx
 * @CreateDate: 2018/3/29 12:07
 */
public class LoggerHandleDelegator {

    public DoResult doLogger(Logger logger){
        //采用动态代理的方式
        ILoggerFactory factory1 = (ILoggerFactory)new JDKProxyLoggerFactory().executeLogger(LoggerType.LOGGER_LOGIN.getLoggerObj());
        factory1.executeLogger(logger);
        return null;
    }
}
